# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=libretro-daphne
pkgver=0_git20210108
pkgrel=2
_commit="0a7e6f0fda1348144369ce0a889876df60263e8f"
pkgdesc="daphne core for libretro"
url="https://github.com/libretro/daphne"
arch="all"
license="GPL-2.0-or-later"
makedepends="libogg-dev libvorbis-dev zlib-dev"
source="$pkgname-$_commit.tar.gz::https://github.com/libretro/daphne/archive/$_commit.tar.gz
	patch-unbundle.patch
	gcc14.patch
	"
builddir="$srcdir/daphne-$_commit"
options="!check" # No tests

build() {
	rm -rf deps
	make
}

package() {
	install -Dm644 daphne_libretro.so "$pkgdir"/usr/lib/libretro/daphne_libretro.so
}

sha512sums="
8af1018ad596887a4a8b64683e89d76010a92677dca5d0d3062f5697b97f5135e25517fae7ed9037c6da947c5162353d31569c629cba154401b76c7ba46d3d6b  libretro-daphne-0a7e6f0fda1348144369ce0a889876df60263e8f.tar.gz
308588bdafbc470390e53d84c6e5b11a4760e194879add00214960f2625be243ed199205ecbda881ae0616b3d163a216602a776cb3d304da3ec81a8ec1ae298e  patch-unbundle.patch
b58529f6a2bc2e90c6dfe46d798bc910a2b1164feec8038017efd3a02685c759bee1afa71b9d5866a3ab23fbfd1a48dce9ef01c4d16a51fdd44e923941b703f3  gcc14.patch
"
